<?php
/**
 * Created by PhpStorm.
 * User: superxing-cto
 * Date: 17/3/8
 * Time: 10:33
 */

namespace App\Models;


class UserChildAccount extends ApplicationModel
{
    protected $guarded = [];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function parent()
    {
        return $this->belongsTo(User::class, 'parent_id');
    }
}